74 WDT_A_hold(WDT_A_BASE);
77 while(BattBak_unlockBackupSubSystem(BAK_BATT_BASE));
86 UCS_turnOnLFXT1(UCS_XT1_DRIVE_3,
91 currentTime.Seconds = 0x00;
92 currentTime.Minutes = 0x26;
93 currentTime.Hours = 0x13;
94 currentTime.DayOfWeek = 0x03;
95 currentTime.DayOfMonth = 0x20;
96 currentTime.Month = 0x07;
97 currentTime.Year = 0x2011;
105 RTC_B_initCalendar(RTC_B_BASE,
111 RTC_B_configureCalendarAlarmParam
param = {0};
112 param.minutesAlarm = 0x00;
113 param.hoursAlarm = 0x17;
114 param.dayOfWeekAlarm = RTC_B_ALARMCONDITION_OFF;
115 param.dayOfMonthAlarm = 0x05;
116 RTC_B_configureCalendarAlarm(RTC_B_BASE, &
param);
119 RTC_B_setCalendarEvent(RTC_B_BASE,
120 RTC_B_CALENDAREVENT_MINUTECHANGE);
125 RTC_B_clearInterrupt(RTC_B_BASE,
126 RTCRDYIFG + RTCTEVIFG + RTCAIFG);
127 RTC_B_enableInterrupt(RTC_B_BASE,
128 RTCRDYIE + RTCTEVIE + RTCAIE);
131 RTC_B_startClock(RTC_B_BASE);
134 __bis_SR_register(LPM3_bits + GIE);
138 #if defined(__TI_COMPILER_VERSION__) || defined(__IAR_SYSTEMS_ICC__)
139 #pragma vector=RTC_VECTOR
141 #elif defined(__GNUC__)
142 __attribute__((interrupt(RTC_VECTOR)))
147 while(BattBak_unlockBackupSubSystem(BAK_BATT_BASE));
149 switch(__even_in_range(RTCIV,16))
154 GPIO_toggleOutputOnPin(
163 newTime = RTC_B_getCalendarTime(RTC_B_BASE);
MPU_initThreeSegmentsParam param
volatile Calendar newTime